package com.yu.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//注解生效后，@Component等价于<bean id="user" class="com.yu.pojo.User"/>
@Component
public class User {

    //相当于<property name="name" value="韩波">
    @Value("韩波")
    public String name;
}
